//
//  YZEHomeHeadView.m
//  yilutongxing
//
//  Created by 赵继申 on 17/3/11.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "YZEHomeHeadView.h"

@implementation YZEHomeHeadView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = WHITE_COLOR;
        _m_cycleScrollView = [[SDCycleScrollView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, GTFixHeightFlaot(186))];
        _m_cycleScrollView.placeholderImage = [UIImage imageNamed:@"home_image"];
        _m_cycleScrollView.infiniteLoop     = YES;
        _m_cycleScrollView.dotColor         = [UIColor whiteColor];
        _m_cycleScrollView.pageControlStyle = SDCycleScrollViewPageContolStyleClassic;
        _m_cycleScrollView.pageControlAliment=SDCycleScrollViewPageContolAlimentRight;
        [self addSubview:_m_cycleScrollView];
        
        
            }
    return self;
}
@end
